package org.example.testcode.FactoryBean;

import org.springframework.beans.factory.FactoryBean;


public class MyFactoryBean implements FactoryBean {

    @Override
    public Object getObject() throws Exception {
        return new User();
    }

    @Override
    public Class<?> getObjectType() {
        return User.class.getClass();
    }

    @Override
    public boolean isSingleton() {
        return false;
    }
}